<?
include "server_config.php";
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <title> 넥도닥 [NextDoorDoctor] :: 멘토-멘티 </title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link rel="stylesheet" type="text/css" href="css/common.css">
	<script type="text/javascript" src="./js/jquery-1.6.2.min.js"></script>
	<script>
		var current_menu = 3;
		<? include 'js/common.js';?>
	</script>
 </head>

 <body >
  <table border=0 width='980px' align='center'>
	

<?
include "nddg_top_menu.php";
?>	

	<tr>
		<td>
<?
					$sql="
						SELECT id, title_img_src, title, content FROM nddg_article WHERE id='".$_GET['article_id']."' LIMIT 1;
					";

					$result = mysql_query($sql,$connect);

					$row = mysql_fetch_row($result);

					$article_id = $row[0];
					$article_title_img_src = $row[1];
					$article_title = $row[2];
					$article_content = $row[3];
				?>
			<div style='width:594px;padding-left:25px;padding-right:25px;padding-top:6px;padding-bottom:10px; border:1px solid #D6D6D6; float:left;
				background:#F9F9F1; border-bottom: 0px;line-height:30px;'>
						<font size='4'><b><?=$article_title?></b></font>
			</div>
			<div style='width:250px;padding-left:25px;padding-right:25px;padding-bottom:25px; margin-left:30px;border:1px solid #D6D6D6; float:right;
				background:#F9F9F1; border:1px solid #E4E3DE;'>
				<img src='img/title_mento_1.png' border=0><br>
				<br>
					<a href='nddg_mento_main.php'>인터뷰</a><br>
					<br>
					<a href='nddg_mento_main.php'>생존자 경험담</a><br>
					<br>
			</div>
			<div style='width:594px;padding:25px;border:1px solid #D6D6D6; float:left;'>


					<div style='width:100%;float:left;line-height:23px;'>

						<img src='img/<?=$article_title_img_src?>' border='0'/><br>
						<br>
						<?=conver_html($article_content)?><br>
						<br>
					</div>
					<div style='width:700px;float:left;height:10px;'>
					</div>

<!--
<?
					$sql="
						SELECT id, title_img_src, title, content FROM nddg_article ORDER BY reg_timestamp DESC ;
					";

					$result = mysql_query($sql,$connect);

					while($row = mysql_fetch_row($result))
					{
						$article_id = $row[0];
						$article_title_img_src = $row[1];
						$article_title = $row[2];
						$article_content = $row[3];
				?>
					<div style='width:100%;float:left;'>
						<a href='nddg_mento_view.php?article_id=<?=$article_id?>'>
							<div style='width:170px;float:left;'>
								<img src='img/<?=$article_title_img_src?>' align='left' border='0' width='150px'/>
							</div>
							<div style='width:420px;float:left;line-height:23px;'>
								<font size=4><b><?=$article_title?></font></b><br>
								<br>
								<?=utf8_strcut($article_content,170);?><br>
							</div>
						</a>
					</div>
					<div style='width:100%;height:1px;float:left;margin-top:16px;margin-bottom:16px; 
								border-bottom:2px dotted #E4E3DE;'><span></span></div>

				<?
					}
				?>

				-->
			</div>
			



			<div style='width:250px;padding-left:25px;padding-right:25px;padding-bottom:25px; margin-top:30px; margin-left:30px;border:1px solid #D6D6D6; float:right;
				background:#F9F9F1; border:1px solid #E4E3DE;'>
				<img src='img/title_mento_2.png' border=0><br>
				<br>
<?
					$sql="
						SELECT id, title FROM nddg_article ORDER BY reg_timestamp DESC ;
					";

					$result = mysql_query($sql,$connect);

					while($row = mysql_fetch_row($result))
					{
						$article_id = $row[0];
						$article_title = $row[1];
				?>	
					<a href='nddg_mento_view.php?article_id=<?=$article_id?>'><?=$article_title?></a><br>
					<br>
					
				<?
					}
				?>

			</div>
			<!--div style='width:700px;float:left;'>

				<?
					$sql="
						SELECT id, title_img_src, title, content FROM nddg_article WHERE id='".$_GET['article_id']."' LIMIT 1;
					";

					$result = mysql_query($sql,$connect);

					while($row = mysql_fetch_row($result))
					{
						$article_id = $row[0];
						$article_title_img_src = $row[1];
						$article_title = $row[2];
						$article_content = $row[3];
				?>
					<div style='width:700px;float:left;'>
						<b><?=$article_title?></b><br>
						<br>
						<img src='img/<?=$article_title_img_src?>' border='0'/><br>
						<br>
						<?=conver_html($article_content)?><br>
						<br>
					</div>
					<div style='width:700px;float:left;height:10px;'>
					</div>

				<?
					}
				?>
				
			</div>
			<div style='width:30px;float:left;height:50px;'>
			</div>
			<div style='width:270px;float:left;'>
				추천 글<br><br>
				<?
					$sql="
						SELECT id, title FROM nddg_article ORDER BY reg_timestamp DESC ;
					";

					$result = mysql_query($sql,$connect);

					while($row = mysql_fetch_row($result))
					{
						$article_id = $row[0];
						$article_title = $row[1];
				?>	
					<a href='nddg_mento_view.php?article_id=<?=$article_id?>'><?=$article_title?></a><br>
					
				<?
					}
				?>

				<br>
				<br>
				멘토멘티 다른 글 목록<br><br>
				<?
					$sql="
						SELECT id, title FROM nddg_article ORDER BY reg_timestamp DESC ;
					";

					$result = mysql_query($sql,$connect);

					while($row = mysql_fetch_row($result))
					{
						$article_id = $row[0];
						$article_title = $row[1];
				?>	
					<a href='nddg_mento_view.php?article_id=<?=$article_id?>'><?=$article_title?></a><br>
					
				<?
					}
				?>
			</div-->



			
		</td>
	</tr>

<?
include "nddg_footer.php";
?>	

  </table>
 </body>
</html>
